package modeller.databasedesignmodel;

import modeller.databasedesignmodel.transaction.QueryTypeEnum;
import org.omg.CORBA.PUBLIC_MEMBER;

import java.io.Serializable;

/**
 * Created by:  Jason Ye
 * Date:        05/02/2012
 * Time:        17:19
 */
public class Attribute implements Serializable {

    private String m_attributeName;
    private int attributeSize;

    public Attribute(String mAttributeName, int size) {

        this.m_attributeName = mAttributeName;
        this.attributeSize = size;
    }

    public String getAttributeName() {
        return m_attributeName;
    }

    public void setAttributeName(String attributeName) {
        this.m_attributeName = attributeName;
    }


    public int getAttributeSize() {
        return attributeSize;
    }

    public void setAttributeSize(int attributeSize) {
        this.attributeSize = attributeSize;
    }



    @Override
    public String toString() {

        return "ATTRIBUTE:\n"
                + "\n\tName: " + m_attributeName
                + "\n\tAttribute Size (bytes): " + attributeSize
                + "\nEnd of ATTRIBUTE";
    }
}
